package mxmf.diff;

public class DiffInfo {

    private String op;
    private String path;
    private Object value;
    // private Object oldValue;
    private Object fromValue;
    private int index;

    public DiffInfo() {
        super();
    }

    public DiffInfo(String op, String path, Object value, Object oldValue, int index) {
        super();
        this.op = op;
        this.path = path;
        this.value = value;
        this.fromValue = oldValue;
        this.index = index;
    }

    /**
     * @return the op
     */
    public String getOp() {
        return op;
    }

    /**
     * @param op the op to set
     */
    public void setOp(String op) {
        this.op = op;
    }

    /**
     * @return the path
     */
    public String getPath() {
        return path;
    }

    /**
     * @param path the path to set
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * @return the value
     */
    public Object getValue() {
        return value;
    }

    /**
     * @param value the value to set
     */
    public void setValue(Object value) {
        this.value = value;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "DiffInfo [op=" + op + ", path=" + path + ", value=" + value + ", fromValue="
                + fromValue + "]";
    }

    /**
     * @return the index
     */
    public int getIndex() {
        return index;
    }

    /**
     * @param index the index to set
     */
    public void setIndex(int index) {
        this.index = index;
    }

    /**
     * @return the fromValue
     */
    public Object getFromValue() {
        return fromValue;
    }

    /**
     * @param fromValue the fromValue to set
     */
    public void setFromValue(Object fromValue) {
        this.fromValue = fromValue;
    }

}
